package com.woniu.dao;

import com.woniu.pojo.Auth;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthDAO {
    int deleteByPrimaryKey(Integer authId);

    int insert(Auth record);

    int insertSelective(Auth record);

    Auth selectByPrimaryKey(Integer authId);

    int updateByPrimaryKeySelective(Auth record);

    int updateByPrimaryKey(Auth record);

    public List<Auth>queryAuthByUserId(@Param("userId") Integer userId,@Param("parentId")Integer parentId);

    List<Auth> queryAll();

    Auth queryAuthByName(String authName);

    void updateState(String closedStatus, Integer parentId);

    List<Auth> queryAuthsByParentId(Integer authId);
}